#ifndef WIFI_H
#define WIFI_H
#include<WiFi.h>
#include <WiFiClient.h>

//网络通信模块
//搭建TCP/IP服务器，负责接收客户端请求，执行对应指令后，响应客户端
class network
{
    public:
        void connectToWiFi();
        //~wifi();
        //接收数据
        String echoData();
        network();
        void waitClient();
        WiFiServer retserver();
        WiFiClient Client;
    private:

    protected:
      
        String stream;//数据流
        String package;//数据包
        
        WiFiServer Server;
        const char* ssid     = "Honor";
        const char* password = "www1101121";
        
};



#endif
